package com.stt.weather.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 城市常量
 */
public class CityUtil {

    private static final Map<String, String> cityMap = new HashMap<>();

    static {
//        cityMap.put("101010100", "北京");
        cityMap.put("101180101", "郑州");
//        cityMap.put("101181101", "焦作");
//        cityMap.put("101210401", "宁波");
    }

    public static String getCityName(String cityCode) {
        return cityMap.get(cityCode);
    }

    public static List<String> getCodeList() {
        return cityMap.keySet().stream().toList();
    }
}
